package cn.quang.search.admin.entity.vo.meta;

import java.util.Map;

public class EsIndexVO {
    private Map<String, Property> properties;

    public Map<String, Property> getProperties() {
        return properties;
    }

    public void setProperties(Map<String, Property> properties) {
        this.properties = properties;
    }

    public static final class Property{
        // date/integer/keyword/nested/geo_point/double/text/float/long
        private String type;
        private String format;
        // false - 不可排序
        private boolean doc_values;
        // index != false的
        private boolean index;

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getFormat() {
            return format;
        }

        public void setFormat(String format) {
            this.format = format;
        }

        public boolean isDoc_values() {
            return doc_values;
        }

        public void setDoc_values(boolean doc_values) {
            this.doc_values = doc_values;
        }

        public boolean isIndex() {
            return index;
        }

        public void setIndex(boolean index) {
            this.index = index;
        }
    }
}
